package com.zc.study.designPattern.结构型设计模式.decoratePattern;

public class ScrollBarDecorator extends ComponentDecorator{
    public ScrollBarDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        this.setScorllBar();
        super.display();
    }

    private void setScorllBar() {
        System.out.println("为构件增加滚动条");
    }
}
